import http from '@/utils/http'
import type { ResType } from '@/apis/type'

export type DetailRes = {
  art_id: string
  title: string
  pubdate: string
  content: string
}

export function fetchDetailAPI(article_id: string) {
  return http.request<ResType<DetailRes>>({
    url: `/v1_0/articles/${article_id}`,
  })
}